package com.backend.wechat.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;

/**
 * Created by lhlong on 2016/11/29.
 */
@Controller
@RequestMapping("/helloworld")
public class HelloworldController {

    @RequestMapping(value = "/hello",method = {RequestMethod.GET,RequestMethod.POST})
    public ModelAndView hello(HttpSession session){

        System.out.println("hello world!");

        return new ModelAndView("/WEB-INF/jsp/helloworld");
    }

}
